package com.mall4j.cloud.user.interfaces;

import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;

/**
 * 用户地址
 *
 * @author llc
 */
@RestController
@RequestMapping("/user/address")
@Tag(name = "用户地址")
public class UserAddressController {


    private static final Integer MAX_USER_ADDR = 10;

    @GetMapping("/list")
    @Operation(summary = "获取用户地址列表", description = "获取用户地址列表")
    public void list() {
    }

    @GetMapping
    @Operation(summary = "获取用户地址", description = "根据addrId获取用户地址")
    public void getByAddrId(@RequestParam Long addrId) {
    }

    @PostMapping
    @Operation(summary = "保存用户地址", description = "保存用户地址")
    public void save() {

    }

    @PutMapping
    @Operation(summary = "更新用户地址", description = "更新用户地址")
    public void update() {
    }

    @DeleteMapping
    @Operation(summary = "删除用户地址", description = "根据用户地址id删除用户地址")
    public void delete(@RequestParam Long addrId) {

    }

}
